package sjtu.ist.warehouse4ws.service.cust;

import java.util.List;

import sjtu.ist.warehouse4ws.dao.cust.CustRolepermissionsDao;
import sjtu.ist.warehouse4ws.dao.cust.CustRolepermissionsDaoHibernate;
import sjtu.ist.warehouse4ws.model.CustRolepermissions;


public class CustRolepermissionsServiceImpl implements CustRolepermissionsService{

    private CustRolepermissionsDaoHibernate custRolepermissionsDao;
	
	public void setCustRolepermissionsDao(
			CustRolepermissionsDaoHibernate rolepermissionsDao) {
		this.custRolepermissionsDao = rolepermissionsDao;
	}


	@Override
	public boolean addCustRolepermissions(CustRolepermissions rolepermissions) {
		// TODO Auto-generated method stub
		custRolepermissionsDao.save(rolepermissions);
		return false;
	}


	@Override
	public List getCustRolepermissionsById(String id) {
		// TODO Auto-generated method stub
		return (List<CustRolepermissions>)custRolepermissionsDao.findById(id);
	}

}
